<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x" style="overflow:hidden;">
    	<div style="float:left;margin-right:50px;">
        <a href='<?php echo U('user/user_list');?>'><em>会员列表</em></a><span>|</span>
        <a href='javascript:;' class="on" ><em>收货地址</em></a>
      </div>
      <div style="color:#000;">
       会员邮箱：<?php echo $user['email'];?>  &nbsp; &nbsp; &nbsp;<?php echo $user['username'];?>
      </div>
    </div>
</div>

<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th align='center' width="150">First_name/Last_name</th>
            <th align='center' width="300">地址</th>
            <th align='center' width="150">电话/手机</th>
            <th align='center' width="150">E-mail</th>
            <th align='center' width="100">邮编</th>
            <th align='center' width="150">添加时间</th>
            <th align='center' width="50">默认</th>
            </tr>
        </thead>
     <tbody>
   <?php 
   	if(isset($addressList) && $addressList):
   		foreach ($addressList as $v):
   ?>
			<tr>
					<td align='left'><?php echo $v['delivery_first_name'] .' . '. $v['delivery_last_name'];?></td>
					<td align='center'>
					<?php echo '[ '. $v['delivery_country']. ' - '. $v['delivery_province'] . ' - '. $v['delivery_city'] . ' ]';?><br/>
					<?php echo $v['delivery_address'];?>
					</td>
					<td align='center'><?php echo $v['delivery_phone'] . ' / '. $v['delivery_moblie'];?></td>
					<td align='center'><?php echo $v['delivery_email']?></td>
					<td align='center'><?php echo $v['delivery_postcode'];?></td>
					<td align='center'><?php echo date('Y-m-d H:i:s',$v['start_time']);?></td>
					<td align="center"><?php if($v['default']==1){?><font color="red">√</font><?php }else{?><font color="blue">×</font><?php }?></td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
 </table>
</div>
</div>
</body>
</html>